import axios from '../axios'


// 保存
export const save = (data) => {
  return axios({
    url: '/userStorage/save',
    method: 'post',
    data
  })
};


// 删除
export const batchDelete = (data) => {
  return axios({
    url: '/userStorage/delete',
    method: 'post',
    data
  })
};


// 分页查询
export const findPage = (data) => {
  return axios({
    url: '/userStorage/findPage',
    method: 'post',
    data
  })
};

export const findSubPath = (data) => {
  return axios({
    url: '/userStorage/findSubPath',
    method: 'post',
    data
  })
};

// 根据用户ID查询
export const findByUserId = (params) => {
  return axios({
    url: '/userStorage/findByUserId',
    method: 'get',
    params
  })
};

